<?php
!defined('P_W') && exit('Forbidden');
require_once R_P . 'lib/framework/helper.php';
class BaseHelper extends Helper {
	
	function getHouseSaleService() {
		return House::LoadService('SecondSaleService');
	}
	
	function getHouseHireService() {
		return House::LoadService('SecondHireService');
	}
	
	function getBrokerService() {
		return House::LoadService('brokerservice');
	}
	
	function getUserService(){
		return L::loadClass('UserService', 'user'); /* @var $userService PW_UserService */;
	}
	
	function getReportService(){
		return House::LoadService('housereportservice');
	}
	
	function getSecondImageService(){
		return House::LoadService('secondimageservice');
	}
	
	function getHouseViewUtility(){
		return House::loadClass('houseview', 'utility');
	}
	
	function getBrokerGroupService(){
		return House::loadService('brokerGroupService');
	}
	
	function getSecondPostService(){
		return House::loadService('SecondPostService');
	}
	
	function getWeiboService(){
		return  L::loadClass('weibo','sns');
	}
	
	function getHouseFieldsService(){
		return House::loadService('HouseFieldsService');
	}
	
	function _buildAdminURL($action){
		return $this->_getGlobal('basename') . '&action=' . $action;
	}
	function manageError(){
		ObHeader(PW_HouseUrl::manageError());
	}
}